function covar = params2covar(params)

D = computeDimensions(size(params, 1));
covar = zeros(D, D);

count = 1;
for i = 1:D;
    for j = i:D
        covar(i, j) = params(count);
        covar(j, i) = params(count);
        count = count + 1;
    end
end
